package com.ruoyi.framework.web.service;

//import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * Create By CodeCow on 2020/7/19.
 */
//@Slf4j 如何使用
@Service
public class CommonRestTemplateService {

    @Resource
    private RestTemplate restTemplate;

    public ResponseEntity<String> getForEntity(String url) {
        return restTemplate.getForEntity(url, String.class);
    }

}
